<!--
 * @Descripttion:
 * @version:
 * @Author:
 * @Date: 2019-10-24 17:25:56
 -->
<template>
  <div>
    {{item}}
    <span>{{item.label}}</span>
    <el-select v-model="selectValue"
               @change="$emit('changeHandle',selectValue,item)">
      <el-option v-for="o in item.options"
                 :key="o.value"
                 :label="o.label"
                 :value="o.value"
                 :disabled="o.disabled">
      </el-option>
    </el-select>
  </div>
</template>

<script>
export default {
  props: {
    item: {
      type: Object,
      required: true
    }
  },
  data () {
    return {
      selectValue: "1"
    }
  },
}
</script>
